
export default {
  click(){
    let item  = this.data.pop()
    if(this.data.length === 0){
      this.disabledCtrl('Revoke', true)
      this.disabledCtrl('Rotate', false)
    }
    if(item && item.type === 'Text'){
      let el = document.getElementById(item.id)
      if(el){
        el.parentNode.removeChild(el)
      }
    }
    this.restDraw(true)
  },
  canvasMousedown(e){},
  canvasMouseup(e){},
  canvasMouseout(e){},
  canvasTouchstart(e){},
  canvasTouchend(e){},
  winMouseup(){},
  winMousemove(e){},
  winTouchend(e){},
  visibilitychange(){}
}
